home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / mail / listserv / linux / linux.diffs.6.0a.Z / linux.diffs.6.0a / text0000.txt < prev   
Encoding:
Text File  |  1993-08-08  |  6.3 KB  |  187 lines

  1. Well, here it is.  This is a patch against 6.0a/930731.  Hope it works
  2. for you as well.  I've included my Makefile in the diffs (just in case)
  3. BTW, I'm running Linux 0.99p11, gcc 2.4.5 with libc 4.4.1
  4.  
  5. === diffs ===
  6. diff -ru2 930731/src/Makefile Server/src/Makefile
  7. --- 930731/src/Makefile    Sun Aug  8 12:32:11 1993
  8. +++ Server/src/Makefile    Sun Aug  1 22:26:35 1993
  9. @@ -122,12 +122,13 @@
  10.  
  11.  # define your compiler:
  12. -CC        = cc
  13. +CC        = gcc
  14.  
  15.  # define special symbols (system, preprocessor options, etc):
  16. -DEFINES        = -DHAVE_SELECT_H -DHAVE_ULIMIT_H -DHAVE_SETJMP_H \
  17. -          -DHAVE_TZFILE_H
  18. +DEFINES        = -DHAVE_ULIMIT_H -DHAVE_SETJMP_H \
  19. +          -DDONT_GO_INTERACTIVE -DZMAILER \
  20. +          -DUCB_MAIL=\"/usr/bin/mailx\"
  21.  
  22.  # define linking options and libraries
  23. - LDFLAGS        = $(OPTIMIZATION)
  24. + LDFLAGS        = -s $(OPTIMIZATION)
  25.  
  26. diff -ru2 930731/src/defs.h Server/src/defs.h
  27. +++ Server/src/defs.h    Sun Aug  1 22:39:47 1993
  28. + int optopt;
  29.  
  30. diff -ru2 930731/src/signals.c Server/src/signals.c
  31. --- 930731/src/signals.c    Sun Aug  8 12:32:37 1993
  32. +++ Server/src/signals.c    Sun Aug  1 17:25:19 1993
  33. @@ -83,5 +83,7 @@
  34.    signals[SIGQUIT] = "SIGQUIT";
  35.    signals[SIGTERM] = "SIGTERM";
  36. +#ifdef SIGBUS
  37.    signals[SIGBUS] = "SIGBUS";
  38. +#endif
  39.    signals[SIGSEGV] = "SIGSEGV";
  40.    signals[SIGKILL] = "SIGKILL";
  41. @@ -112,5 +114,7 @@
  42.    signal (SIGTERM, my_abort);
  43.    signal (SIGSEGV, my_abort);
  44. +#ifdef SIGBUS
  45.    signal (SIGBUS, my_abort);
  46. +#endif
  47.    signal (SIGKILL, my_abort); /* Can't be caught, but why not try? */
  48.  #ifdef _AIX
  49. @@ -144,5 +148,9 @@
  50.      syscom ("echo '' | %s -s '%s received %s' %s &", UCB_MAIL,
  51.          (prog ? prog : "???"), signals[sig], sys.manager);
  52. +#ifdef SIGBUS
  53.    if (sig == SIGQUIT || sig == SIGILL || sig == SIGSEGV || sig == SIGBUS) {
  54. +#else
  55. +  if (sig == SIGQUIT || sig == SIGILL || sig == SIGSEGV) {
  56. +#endif
  57.  #ifdef GO_INTERACTIVE
  58.    union semun {
  59.  
  60. diff -ru2 930731/systest Server/systest
  61. --- 930731/systest    Sun Aug  8 12:32:54 1993
  62. +++ Server/systest    Sun Aug  1 16:59:42 1993
  63. @@ -385,4 +385,11 @@
  64.    echo Missing  utilities you have to have: $have_to_have
  65.  fi
  66. +#find -follow not supported on all platforms
  67. +find /usr/include -follow -print >/dev/null 2>&1
  68. +if [ $? -eq 0 ]; then
  69. +  follow="-follow"
  70. +else
  71. +  follow=""
  72. +fi
  73.  echo
  74.  
  75. @@ -392,5 +399,5 @@
  76.  else
  77.    file=`(cd /usr/include;\
  78. -     find . -name select.h -print 2>/dev/null)` #find -follow not supported on all platforms
  79. +     find . $follow -name select.h -print 2>/dev/null)`
  80.    if [ "$file" = "" ]; then
  81.      echo '*** Do NOT compile with the -DHAVE_SELECT_H flag'
  82. @@ -410,5 +417,5 @@
  83.  else
  84.    file=`(cd /usr/include;\
  85. -     find . -name ulimit.h -print 2>/dev/null)`
  86. +     find . $follow -name ulimit.h -print 2>/dev/null)`
  87.    if [ "$file" = "" ]; then
  88.      echo '*** Do NOT compile with the -DHAVE_ULIMIT_H flag'
  89. @@ -423,5 +430,5 @@
  90.  else
  91.    file=`(cd /usr/include;\
  92. -     find . -name setjmp.h -print 2>/dev/null)`
  93. +     find . $follow -name setjmp.h -print 2>/dev/null)`
  94.    if [ "$file" = "" ]; then
  95.      echo '*** Do NOT compile with the -DHAVE_SETJMP_H flag'
  96. @@ -436,5 +443,5 @@
  97.  else
  98.    file=`(cd /usr/include;\
  99. -     find . -name tzfile.h -print 2>/dev/null)`
  100. +     find . $follow -name tzfile.h -print 2>/dev/null)`
  101.    if [ "$file" = "" ]; then
  102.      echo '*** Do NOT compile with the -DHAVE_TZFILE_H flag'
  103. @@ -442,5 +449,5 @@
  104.      file=`echo $file | awk '{ print $1 }'`
  105.      echo '*** Compile with -DHAVE_TZFILE_H'
  106. -    echo \*\*\* Compile with -I/usr/server`dirnam $file | sed 's/\.//g'`
  107. +    echo \*\*\* Compile with -I/usr/include`dirnam $file | sed 's/\.//g'`
  108.    fi
  109.  fi
  110. @@ -449,5 +456,5 @@
  111.  else
  112.    file=`(cd /usr/include;\
  113. -     find . -name syslog.h -print 2>/dev/null)`
  114. +     find . $follow -name syslog.h -print 2>/dev/null)`
  115.    if [ "$file" != "" ]; then
  116.      file=`echo $file | awk '{ print $1 }'`
  117. @@ -501,11 +508,12 @@
  118.  echo --- Looking for specific header files:
  119.  
  120. -grep SIGCLD /usr/include/sys/signal.h > /dev/null 2>&1
  121. +file=`find /usr/include $follow -name signal.h -print 2>/dev/null`
  122. +grep SIGCLD $file > /dev/null 2>&1
  123.  sigcld1=$?
  124. -grep SIGCHLD /usr/include/sys/signal.h > /dev/null 2>&1
  125. +grep SIGCHLD $file > /dev/null 2>&1
  126.  sigcld2=$?
  127. -grep SIGUSR1 /usr/include/sys/signal.h > /dev/null 2>&1
  128. +grep SIGUSR1 $file > /dev/null 2>&1
  129.  sigusr1=$?
  130. -grep SIGUSR2 /usr/include/sys/signal.h > /dev/null 2>&1
  131. +grep SIGUSR2 $file > /dev/null 2>&1
  132.  sigusr2=$?
  133.  if [ $sigcld1 -ne 0 -o $sigcld2 -ne 0 -o $sigusr1 -ne 0 -o $sigusr2 -ne 0 ]; then
  134. @@ -523,5 +531,5 @@
  135.    else
  136.      file=`(cd /usr/include;\
  137. -       find . -name wait.h -print 2>/dev/null)`
  138. +       find . $follow -name wait.h -print 2>/dev/null)`
  139.      if [ "$file" = "" ]; then
  140.        echo '*** Remove #include <sys/wait.h> from all source files'
  141. @@ -547,5 +555,5 @@
  142.  if [ ! -f /usr/include/sys/sem.h ]; then
  143.    file=`(cd /usr/include;\
  144. -     find . -name sem.h -print 2>/dev/null)`
  145. +     find . $follow -name sem.h -print 2>/dev/null)`
  146.    if [ "$file" = "" ]; then
  147.      go_interactive=no${known_port:-'; no semaphore support; compile with -DDONT_GO_INTERACTIVE'}
  148. @@ -562,5 +570,5 @@
  149.  if [ ! -f /usr/include/netdb.h ]; then
  150.    file=`(cd /usr/include;\
  151. -     find . -name netdb.h -print 2>/dev/null)`
  152. +     find . $follow -name netdb.h -print 2>/dev/null)`
  153.    if [ "$file" = "" ]; then
  154.      echo '*** Remove #include <netdb.h> from all source files'
  155. @@ -572,10 +580,10 @@
  156.  if [ ! -f /usr/include/sys/socket.h ]; then
  157.    file=`(cd /usr/include;\
  158. -     find . -name socket.h -print 2>/dev/null)`
  159. +     find . $follow -name socket.h -print 2>/dev/null)`
  160.    if [ "$file" = "" ]; then
  161.      tcp_ip=no${known_port:-'; compile with -DNO_TCP_IP; the system mailmethod may not be used'}
  162.    else
  163.      file=`echo $file | awk '{ print $1 }'`
  164. -    echo \*\*\* Compile with -I/usr/server`dirnam $file | sed 's/\.//g' |\
  165. +    echo \*\*\* Compile with -I/usr/include`dirnam $file | sed 's/\.//g' |\
  166.  sed 's/\/sys//g'`
  167.      echo $file | grep 'sys/socket.h' > /dev/null 2>&1
  168. @@ -863,5 +871,5 @@
  169.    echo yes
  170.  else
  171. -  for i in `(cd /usr/include; find . -print 2>/dev/null)`; do
  172. +  for i in `(cd /usr/include; find . $follow -print 2>/dev/null)`; do
  173.      grep O_NDELAY /usr/include/$i > /dev/null 2>&1
  174.      if [ $? -eq 0 ]; then
  175. @@ -896,5 +904,5 @@
  176.    echo yes${known_port:-'; make sure NO_LOCKS is NOT defined in src/defs.h'}
  177.  else
  178. -  for i in `(cd /usr/include; find . -print 2>/dev/null)`; do
  179. +  for i in `(cd /usr/include; find . $follow -print 2>/dev/null)`; do
  180.      grep F_TLOCK /usr/include/$i > /dev/null 2>&1
  181.      if [ $? -eq 0 ]; then
  182. === diffs ===
  183.  
  184. Cheers,
  185. -- pi
  186.  
  187.